package com.wpre.lotterysystem.service;

import com.wpre.lotterysystem.controller.param.DrawPrizeParam;
import com.wpre.lotterysystem.controller.param.ShowWinningRecordsParam;
import com.wpre.lotterysystem.dao.dataobject.WinningRecordDO;
import com.wpre.lotterysystem.service.dto.WinningRecordDTO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-22
 * Time: 20:07
 */
public interface DrawPrizeService {
    void drawPrize(DrawPrizeParam param);//异步抽奖接口

    boolean checkParam(DrawPrizeParam param);//校验抽奖请求的参数

    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    //回滚中奖记录(删除活动奖品下的中奖记录)
    void deleteRecords(Long activityId, Long prizeId);


    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
